<?php
namespace app\api\model;
use app\common\model\Base;

class WeiguiJl extends Base
{
    //记录违规投注
    public function setRecordOfViolation($user,$jl_rizhi,$cztime,$cz_ip) {
        $res = WeiguiJl::name('weigui_jl')
        ->bind(['username'=>$user,'wgtest'=>$jl_rizhi,'cz_time'=>$cztime,'cz_ip'=>$cz_ip])
        ->insert(['username'=>':username','wgtest'=>':wgtest','cz_time'=>':cz_time','cz_ip'=>':cz_ip']);
        return $res;
    }
    
}